package cyc.learn.mode.observable;

public class Test {
    public static void main(String[] args) {
        Food food = new Food("土豆", 1.0f);
        Customer zhangsan = new Customer("张三");
        Customer list = new Customer("李四");

        food.addObserver(zhangsan);
        food.addObserver(list);

        food.setPrice(2.0f);
    }
}
